import request from "@/manager/base/RequestManager";
import AfterSaleOrderLineSearchRequest from "@/api/afterSale/order/request/AfterSaleOrderLineSearchRequest";
import AfterSaleWarehouseSearchRequest from "@/api/afterSale/warehouse/request/AfterSaleWarehouseSearchRequest";
import AfterSaleOrderSearchRequest from "@/api/afterSale/order/request/AfterSaleOrderSearchRequest";
import AfterSaleShippingSearchRequest from "@/api/afterSale/warehouse/request/AfterSaleShippingSearchRequest";


/**
 *  获取售后工单分页
 *
 * @author 徐寿春
 * 2023/4/7 10:02
 */
export function getAfterSaleListsByPage(params?: AfterSaleOrderSearchRequest) {
    return request.post('after/sale/getAfterSaleListsByPage', params)
}

/**
 *  获取售后工单
 *
 * @author 徐寿春
 * 2023/4/7 10:02
 */
export function getAfterSaleLists(params?: any) {
    return request.post('after/sale/getAfterSaleLists', params)
}

/**
 *  获取售后工单
 *
 * @author 徐寿春
 * 2023/4/7 10:02
 */
export function getCooperateListByPage(params?: any) {
    return request.post('after/sale/getCooperateListByPage', params)
}


/**
 * 获取待入库工单列表
 *
 * @author xsc
 * 2023/3/31 09:52
 */
export function getWaitWarehouseList(params: AfterSaleOrderLineSearchRequest) {
    return request.post('after/sale/getWaitWarehouseList', params)
}

/**
 * 获取发运单列表
 *
 * @author xsc
 * 2023/3/31 09:52
 */
export function getShippingList(params: AfterSaleShippingSearchRequest) {
    return request.post('after/sale/getShippingList', params)
}


/**
 * 获取入库工单列表
 *
 * @author xsc
 * 2023/3/31 09:52
 */
export function getWarehousingList(params: AfterSaleWarehouseSearchRequest) {
    return request.post('after/sale/getWarehousingList', params)
}

/**
 * 生成唯一序列号
 * @param params
 */
export function createSerialNumberString() {
    return request.get('after/sale/createSerialNumber',)
}

